package com.autonomous_printer.mapper;

import com.autonomous_printer.pojo.Manager;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface ManagerMapper {

    @Select("select count(*) from manage where username=#{username} and password=#{password}")
    public int selectManager(Manager manager);

    @Insert("insert into manage(username,password) value (#{username},#{password})")
    public int addManager(Manager manager);

}
